<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="contain">
        <div v-show="1===2">{{name}}</div>
        <div v-show="true">{{name}}</div>
        <button @click="n++">点我变化</button>
        <div v-show="n==1">666</div>
        <div v-show="n==2">{{name}}</div>
    </div>

    <script>
        const vm = new Vue({
            el: '#contain',
            data: {
                name: 'hello world',
                n: 0
            }
        });
    </script>
</body>

</html>